#! /usr/bin/env python3


from collections import OrderedDict


# 记录键值对的添加顺序
d = OrderedDict()
d['name'] = 'admin'
d['age'] = 27
d['language'] = ['python', 'shell', 'c']
d['sex'] = 'male'
for k, v in d.items():
    print(f"{k:>8}---> {v}")

def show_info(*args, **kwargs):
    """显示用户输入的信息"""
    for i in args:
        print(f"用户传入的不定长参数有:{i}")
    for k, v in kwargs.items():
        print(f"键{k:>8}---> 值{v}")
    return 0

show_info('a', 'b', name="admin", age=27, language="python")

